#ifndef VSMORPHMAINFUNCTION_H
#define VSMORPHMAINFUNCTION_H
#include "VSMorphBaseFunction.h"
namespace VSEngine2
{
	class VSGRAPHIC_API VSMorphMainFunction : public VSMorphBaseFunction
	{
		//RTTI
		DECLARE_RTTI;
		//PRIORITY
		
	public:
		virtual ~VSMorphMainFunction();
		virtual bool UpdateEx(double dAppTime);

		VSMorphMainFunction(const VSUsedName & ShowName,VSMorphTree * pMorphTree);

		//void CreateNode(const VSString & NodeName,unsigned int uiNodeType);
	protected:
		VSMorphMainFunction();

	public:
		static bool RegisterMainFactory();

	private:
		static bool InitialClassFactory();	
		static VSObject * FactoryFunc();
		static bool ms_bRegisterMainFactory;


	};
	typedef VSPointer<VSMorphMainFunction> VSMorphMainFunctionPtr;
}
#endif